package com.tedu.service.impl;

import com.tedu.dao.EmpDao;
import com.tedu.dao.impl.EmpDaomImpl;
import com.tedu.service.EmpService;
import com.tedu.entity.*;

import java.sql.SQLException;
import java.util.List;

public class EmpServiceImpl implements EmpService {

    private EmpDao empDao = new EmpDaomImpl();

    @Override
    public List<Emp> findAllEmp() {
        List<Emp> emps = null;
        try {
            emps = empDao.queryAllEmp();
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }
        return emps;
    }
}
